<div class="table-div">
	<form id="adminMainForm">
		<table>
			<thead>
				<tr>
					<th><input type="checkbox" onclick="checkAll()"></input></th>
					<th>Ticker</th>
					<th>Screenshot</th>
					<th>Status</th>
					<th>Edit</th>
				</tr>
			</thead>
			<tbody>
				<tr tal:repeat="single listing">
					<td><input type="checkbox"></input></td>
					<td tal:content="single/ticker">Nick India fans on facebook crosses 40,000 - A special thank you to all you Nicksters!!</td>
					<td><img tal:attributes="src single/screenshot"></img></td>
					<td tal:content="single/status">Active</td>
					<td><a tal:attributes="href single/editUrl">Edit</a></td>
				</tr>
			</tbody>
		</table>
	</form>
</div><!-- /.table-div -->

<script>
	function checkAll()
	{
		var form = document.getElementById("adminMainForm");
		for(var i=0; i<form.length; i++)
		{
			if(form[i].type == "checkbox")
			{
				if(form[0].checked==false){
					form[i].checked=false;
				}else{
					form[i].checked=true;
				}
			}
		}
	}
</script>
